//
//  SliderView.swift
//  SwiftUI-CTao
//
//  Created by 涛 on 2019/9/17.
//  Copyright © 2019 涛. All rights reserved.
//

import SwiftUI

struct SliderView: View {
    
    @State private var value: Double = 0
    var body: some View {
        VStack {
            Slider(value: $value, in: 0...100, step: 10)
            Text("\(value)")
        }
        .padding()
    }
}

struct SliderView_Previews: PreviewProvider {
    static var previews: some View {
        SliderView()
    }
}
